dayup = 1.0
dayfactor = 0.01
count = 0
X = eval(input("请输入休息的周期："))
for i in range(365):
    if i % X in [0]:
        count += 1
        dayup = dayup
    else:
        if (i-X*count) % 7 in [1, 2, 3]:
            dayup = dayup
        else:
            dayup = dayup * (1 + dayfactor)
print("365天后的能力值为：{:.3f}".format(dayup))
